package com.tbs.easyhomemoneyserver.form

import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import javax.validation.constraints.NotBlank

@ApiModel
class NewAPIRightForm {
    @ApiModelProperty("权限类型 分级")
    var roleType: Int? = null

    @ApiModelProperty("权限名称")
    @NotBlank(message = "权限名称不能为空")
    var roleName: String? = null

    @ApiModelProperty("权限名称备注")
    var roleComment: String? = null


    @ApiModelProperty("权限验证方式")
    @NotBlank(message = "权限验证方式不能为空")
    var authType: String? = null

    @ApiModelProperty("权限接口路径")
    @NotBlank(message = "url不能为空")
    var url: String? = null

    @ApiModelProperty("权限是否强制需要")
    var force: Int? = null

    @ApiModelProperty("权限参数。")
    var param: String? = null

    constructor(
        roleType: Int?,
        roleName: String?,
        roleComment: String?,
        authType: String?,
        url: String?,
        force: Int?,
        param: String?
    ) {
        this.roleType = roleType
        this.roleName = roleName
        this.roleComment = roleComment
        this.authType = authType
        this.url = url
        this.force = force
        this.param = param
    }

    constructor()
}
